<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

abstract class BaseEnum extends Enum {
    public static function fromValueEnum($enumValue) {
        try {
            return parent::fromValue($enumValue);
        } catch (\Exception $e) {
            return null;
        }
    }
}